package com.mes.md.service.impl;

import com.mes.md.mapper.WorkstationWorkerMapper;
import com.mes.md.service.WorkstationWorkerService;
import com.mes.pojo.md.MdWorkstationWorker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/26 14:11
 */

@Service
public class WorkstationWorkerServiceImpl implements WorkstationWorkerService {
    @Autowired
    private WorkstationWorkerMapper workstationWorkerMapper;


    @Override
    public List<MdWorkstationWorker> queryWorkers(Long workstationId) {
        return workstationWorkerMapper.queryWorkers(workstationId);
    }

    @Override
    public Integer deleteWorker(Long postId) {
        return workstationWorkerMapper.deleteWorker(postId);
    }

    @Override
    public Integer insertWorker(MdWorkstationWorker workstationWorker) {
        return workstationWorkerMapper.insertWorker(workstationWorker);
    }
}
